#ifndef GOODSMANAGEWIDGET_H
#define GOODSMANAGEWIDGET_H

#include <QWidget>

#include "utils.h"

namespace Ui {
class GoodsManageWidget;
}

class GoodsManageWidget : public QWidget
{
    Q_OBJECT

public:
    explicit GoodsManageWidget(QWidget *parent = NULL);
    ~GoodsManageWidget();

    Commodity getCmmodity();
    void clearInfo();
    void setPageKind(bool);

private:
    Ui::GoodsManageWidget *ui;
    bool isAddPage;

private slots:
    void codeEditFinishedSlot();

};

#endif // GOODSMANAGEWIDGET_H
